<?xml version="1.0" encoding="UTF-8"?>
<!--
  - Copyright 2016-2022 the original author or authors.
  -
  - Licensed under the Apache License, Version 2.0 (the "License");
  - you may not use this file except in compliance with the License.
  - You may obtain a copy of the License at
  -
  -      https://www.apache.org/licenses/LICENSE-2.0
  -
  - Unless required by applicable law or agreed to in writing, software
  - distributed under the License is distributed on an "AS IS" BASIS,
  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  - See the License for the specific language governing permissions and
  - limitations under the License.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:sec="https://joinfaces.org/security"
>

<f:view contentType="text/html">

    <h:head>
        <meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
    </h:head>

    <h:body>
        <h1>Security Test Page</h1>
        <sec:anonymous>anonymous</sec:anonymous>
        <sec:authenticated>authenticated</sec:authenticated>
        <sec:fullyAuthenticated>fullyAuthenticated</sec:fullyAuthenticated>

        <sec:authorize access="hasRole('user')">
            user
        </sec:authorize>
        <sec:authorize access="hasRole('user')">
            admin
        </sec:authorize>
    </h:body>
</f:view>
</html>
